Array.prototype.remove = function(from, to) {
	var rest = this.slice((to || from) + 1 || this.length);
	this.length = from < 0 ? this.length + from : from;
	return this.push.apply(this, rest);
};
var a = ['1', '2', '3'];
log(a.length);
console.log(a);
a.remove('1', 2);
log(a.length);